<?php 
require_once('./system/dbConnect.php');
connect();
//获取视频类别
$sql_vt="select * from videotype";
$vt_list=fetch_array($sql_vt);
 ?>
<nav class="navbar navbar-fixed-top navbar-inverse">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
     
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="#">首页 <span class="sr-only">(current)</span></a></li>
        <?php foreach ($vt_list as $one) {
            echo '<li><a href="list.php?id='.$one['tid'].'">'.$one['typename'].'</a></li>';
        } ?>


        <!-- <li><a href="list.html">电影</a></li>
        <li><a href="list.html">电视剧</a></li>
        <li><a href="list.html">动画片</a></li>
        <li><a href="list.html">体育</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">原创 <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">喜剧</a></li>
            <li><a href="#">科幻</a></li>
            <li><a href="#">教育</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">其他</a></li>
          
          </ul>
        </li> -->
      </ul>
      <form class="navbar-form navbar-left" role="search" action="search.html">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Search">
        </div>
        <button type="submit" class="btn btn-default">搜索</button>
      </form>
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#" data-toggle="modal" data-target="#myModal1">登录</a></li>
        <li><a href="reg.php" >注册</a></li>
      
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>